<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <script src="../../script/vue.min.js"></script>
    <script src="../../script/fastclick.js"></script>
    <style>
        body,
        html {
            background: #f6f6fa;
        }

        .index-box {
            padding-top: 30px;
            background: url(../../image/audit/indexback.png) no-repeat top;
            background-size: 100%;
        }

        .logo {
            width: 80px;
            padding-top: 22px;
            margin-left: 22px;
        }

        .pay-title {
            font-size: 16px;
            color: #fff;
            text-align: center;
        }

        .pay-money {
            margin-top: -10px;
            font-size: 58px;
            color: #fff;
            text-align: center;
        }

        .index-main {
            margin: 0 14px;
            margin-top: 7px;
            padding-bottom: 28px;
            background: #fff;
            border-radius: 10px;
            overflow: hidden;
        }

        .pay-time-text {
            margin-top: 24px;
            font-size: 14px;
            color: #222;
            text-align: center;
        }

        .pay-time {
            width: 106px;
            height: 36px;
            margin-left: 50%;
            margin-top: 17px;
            transform: translateX(-50%);
            font-size: 23px;
            color: #3c99fc;
            line-height: 32px;
            border: #3c99fc solid 1px;
            border-radius: 18px;
            text-align: center;
        }

        .main-text {
            margin: 0 18px;
            margin-top: 43px;
            font-size: 14px;
            color: #222;
        }

        .text-pub {
            margin: 12px 0;
            overflow: hidden;
        }

        .text-pub span:nth-child(1) {
            float: left;
        }

        .text-pub span:nth-child(2) {
            float: right;
        }

        .index-btn {
            width: 74%;
            margin-left: 13%;
            margin-top: 43px;
            height: 46px;
            border-radius: 23px;
            background: -webkit-linear-gradient(to right, #fe8549, #ff524e);
            background: -o-linear-gradient(to right, #fe8549, #ff524e);
            background: -moz-linear-gradient(to right, #fe8549, #ff524e);
            background: linear-gradient(to right, #fe8549, #ff524e);
            /*box-shadow: 0 5px 10px 5px rgba(254, 124, 24, 0.1);*/
            font-size: 17px;
            color: #fff;
            text-align: center;
            line-height: 46px;
        }
    </style>
</head>

<body>
    <div class="index-box" id="index">
        <img class="logo" src="../../image/audit/logo2.png" alt="">
        <p class="pay-title" style="padding-top: 20px">借款金额(元)</p>
        <p class="pay-money">20000</p>
        <div class="index-main">
            <p class="pay-time-text">借款期限</p>
            <p class="pay-time">14天</p>
            <div class="main-text">
                <p class="text-pub"><span>到账金额</span><span>20000元</span></p>
                <p class="text-pub"><span>综合费用</span><span>3000元</span></p>
            </div>
            <p class="index-btn" @click="addCell">立即申请</p>
        </div>
</body>
<script src="../../script/api.js"></script>
<script src="../../script/aui-list-swipe.js"></script>
<script>
    apiready = function() {
        FastClick.attach(document.body)
    }
    var vm = new Vue({
        el: '#index',
        data: {

        },
        methods: {
            addCell: function() {
                api.openWin({
                    name: 'wrap',
                    url: 'wrap.html',
                    // animation: {
                    //   type:"reveal",
                    //   subType:"from_right",
                    //   duration: 300
                    // }
                });
            },
            myTouchMove: function() {
                document.activeElement.blur()
            }
        },
        mounted: function() {
            window.addEventListener("touchmove", this.myTouchMove)
        }
    })

    function funcGoto() {
        vm.rataData = $api.getStorage('rataData')
    }

    var swipe = new auiListSwipe(function(ret) {});
</script>

</html>
